package com.testdocs.client.project.event;

import com.google.gwt.event.shared.GwtEvent;
import com.testdocs.client.project.ProjectInfo;

public class ProjectCreatedEvent extends GwtEvent<ProjectCreatedEventHandler>{
	public static Type<ProjectCreatedEventHandler> TYPE = new Type<ProjectCreatedEventHandler>();
	
	ProjectInfo project;
	
	public ProjectCreatedEvent(ProjectInfo project) {
		this.project = project;
	}
	
	@Override
	protected void dispatch(ProjectCreatedEventHandler handler) {
		handler.projectCreated(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ProjectCreatedEventHandler> getAssociatedType() {
		return TYPE;
	}
	
	public  ProjectInfo getProject() {
		return project;
	}
}
